package top.lshaci.learning.alibaba.cloud.sentinel.hello.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import top.lshaci.learning.alibaba.cloud.sentinel.hello.config.EchoServiceFallback;
import top.lshaci.learning.alibaba.cloud.sentinel.hello.config.FeignConfiguration;

@FeignClient(name = "echo", fallback = EchoServiceFallback.class, configuration = FeignConfiguration.class)
public interface EchoService {

    @GetMapping(value = "/echo/{str}")
    String echo(@PathVariable("str") String str);
}
